package com.yidu.qianfeng.common.bean.track;

import lombok.Data;

/**
 * @Author: TangSheng
 * @Description: 跟踪记录查询条件包装类
 * @Date Created in 14:45 2021/4/1
 * @since 1.0
 */

@Data
public class TrackWaybillCondition {

    private String trackConsignNum;//运单托运单号

    private String waybillConsignDate;//运单托运日期

    private String waybillPromiseDate;//运单承诺日期

    private Integer trackType;//运单跟踪记录类型

    private Integer page;//当前页

    private Integer count;//显示条目数

    private Integer offset;//偏移量


    public void setWaybillConsignDate(String waybillConsignDate) {
        if (waybillConsignDate != null && waybillConsignDate != ""){
            this.waybillConsignDate = "%"+waybillConsignDate+"%";
        }else {
            this.waybillConsignDate = waybillConsignDate;
        }
    }

    public void setWaybillPromiseDate(String waybillPromiseDate) {
        if (waybillPromiseDate != null && waybillPromiseDate != ""){
            this.waybillPromiseDate = "%"+waybillPromiseDate+"%";
        }else {
            this.waybillPromiseDate = waybillPromiseDate;
        }
    }

}
